package com.qqt.csr.im.vo.req;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qqt.csr.common.idempotent.RequestKeyParam;
import com.qqt.csr.common.operalog.OperaLogSchema;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 添加敏感词
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(name = "AddingSensitiveWordReqVO", description = "添加敏感词")
public class AddingSensitiveWordReqVO implements Serializable {
    @Serial
    private static final long serialVersionUID = -3060545042678767026L;

    /**
     * 名称
     */
    @Schema(description = "名称",requiredMode = Schema.RequiredMode.REQUIRED)
    @OperaLogSchema(desc = "名称")
    @NotBlank(message = "名称不能为空")
    @Size(max = 3000, message = "名称最多3000字符")
    private String name;

    /**
     * 词库id
     */
    @Schema(description = "词库id",requiredMode = Schema.RequiredMode.REQUIRED)
    @OperaLogSchema(desc = "词库id")
    @NotNull(message = "词库id不能为空")
    @RequestKeyParam
    private Long repoId;
}